import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:smart_devices/bruno/src/components/tabbar/normal/brn_tab_bar.dart';

class DeviceInfoLogic extends GetxController with GetSingleTickerProviderStateMixin {
  late RxString result;

  late TabController tabController;

  late PageController pageController;

  RxString date = RxString('2023-10-17');

  RxList<BadgeTab> tabs = RxList([]);

  @override
  void onInit() {
    super.onInit();
    result = RxString(Get.arguments ?? '');
    tabController = TabController(length: 3, vsync: this);
    pageController = PageController();
    tabs.add(BadgeTab(text: '保养'));
    tabs.add(BadgeTab(text: '巡检'));
    tabs.add(BadgeTab(text: '点检'));
  }

  @override
  void onClose() {
    super.onClose();
    tabController.dispose();
    pageController.dispose();
  }
}
